﻿using Core.Dtos;
using Core.Domain;
using Core.Messages;
using Core.Queries;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Core.IServices
{
    [ServiceContract()]
    [ServiceKnownType(typeof(MotorPolicyDto))]
    public interface IPolicyService : IManageCrudService<int, PolicyDto, PolicyQuery>
    {
        [OperationContract()]  
        Stream BuildReport(int id);

        [OperationContract()]  
        Response<PolicyDto> DoAction(int id, DoActionRequest request);
    }
}
